package com.itheima.sh.c_constructor;

public class Student {
    String name;
    int score;

    //无参数构造器
    public Student() {
        System.out.println("无参数构造器被触发了~");
    }


    //有参数构造器
    public Student(String name, int score) {
        System.out.println();
        this.name = name;
        this.score = score;
        System.out.println(name);
        System.out.println(score);

    }
}
